package com.keepitsimple.core;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public final class ActionContext {
	private String URL;
	private String methodName;
	private Class<?> cla;
	private Object action;
	private Map<String,String> results;
	private Class<?>[] paramsType;
	private String[] actionParamsName;
	private static HttpServletRequest request;
	private static HttpServletResponse response;
	
	//getter and setter
	public String[] getActionParamsName()
	{
		return actionParamsName;
	}
	public void setActionParamsName(String[] actionParamsName)
	{
		this.actionParamsName = actionParamsName;
	}
	public String getURL()
	{
		return URL;
	}
	public void setURL(String uRL)
	{
		URL = uRL;
	}
	public String getMethodName()
	{
		return methodName;
	}
	public void setMethodName(String methodName)
	{
		this.methodName = methodName;
	}
	public Class<?> getCla()
	{
		return cla;
	}
	public void setCla(Class<?> cla)
	{
		this.cla = cla;
	}
	public Object getAction()
	{
		return action;
	}
	public void setAction(Object action)
	{
		this.action = action;
	}
	
	public Map<String, String> getResults()
	{
		return results;
	}
	public void setResults(Map<String, String> results)
	{
		this.results = results;
	}
	public Class<?>[] getParamsType() {
		return paramsType;
	}
	public void setParamsType(Class<?>[] paramsType) {
		this.paramsType = paramsType;
	}
	public static HttpServletRequest getRequest()
	{
		return request;
	}
	public static void setRequest(HttpServletRequest request)
	{
		ActionContext.request = request;
	}
	public static HttpServletResponse getResponse()
	{
		return response;
	}
	public static void setResponse(HttpServletResponse response)
	{
		ActionContext.response = response;
	}
	
	
	
}
